
import language from '../../language';

export default function printOutput() {

    const allData = this.props.editTable.getAllRows('ncc60071701list');
    const param_str = allData.map(item => item.values.pk_psnjob.value);

    let printData = {
        filename: language['hi6007-000099'], /* 国际化处理： 员工信息*/
        funcode: '60071020',      //功能节点编码，即模板编码
        nodekey: '60071020list',//60071030:员工信息查询卡片; 60071030list:员工信息查询列表
        oids: param_str,   // 单据pk  oids含有多个元素时为批量打印,
        outputType: 'output'
    };

    this.setState({
        printData: printData
    }, () => {
        this.printOutputRef.open();
    });
}
